<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('员工背景信息')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
</head>
<style>
    .list {
        width: 50%;
        margin-right: 15px;
    }

    .list1 {
        width: 20%;
        line-height: 32px;
        padding-left: 15px;

    }

    .list2 {

        line-height: 32px;
        padding-left: 15px;

    }

</style>
<body class="white-bg">
<div class="ibox-content">
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#personal_information" data-toggle="tab" aria-expanded="false">个人信息</a></li>
            <li><a href="#education_information" data-toggle="tab" aria-expanded="true">教育信息</a></li>
            <li><a href="#working_information" data-toggle="tab" aria-expanded="false">工作经历</a></li>
            <li><a href="#title_information" data-toggle="tab" aria-expanded="false">职称/资格证书</a></li>
            <li><a href="#training_information" data-toggle="tab" aria-expanded="false">培训经历</a></li>
            <li><a href="#project_information" data-toggle="tab" aria-expanded="false">项目经历</a></li>
            <li><a href="#hortation_information" data-toggle="tab" aria-expanded="false">惩奖经历</a></li>
            <li><a href="#family_information" data-toggle="tab" aria-expanded="false">家庭背景</a></li>
            <li><a href="#emergency_information" data-toggle="tab" aria-expanded="false">紧急联系人</a></li>
            <li><a href="#language_information" data-toggle="tab" aria-expanded="false">语言能力</a></li>
            <li><a href="#certificate_information" data-toggle="tab" aria-expanded="false">证件管理</a></li>
        </ul>
        <div class="tab-content">
            <!--个人信息-->
            <div class="tab-pane active" id="personal_information">

                <div style="display: flex">
                    <div class="list1">工号</div>
                    <div class="list"><input type="text" th:value="${personal.badge}" class="form-control"></div>
                    <div class="list1">入职日期</div>
                    <div class="list"><input type="text" th:value="${personal.JoinDate}" class="form-control"></div>
                    <div class="list1">出生日期</div>
                    <div class="list"><input type="text" th:value="${personal.BirthDay}" name="compCode"
                                             class="form-control"></div>
                    <div class="list1">姓名</div>
                    <div class="list"><input type="text" th:value="${personal.name}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">开始工作日</div>
                    <div class="list"><input type="text" th:value="${personal.WorkBeginDate}" class="form-control">
                    </div>
                    <div class="list1">年龄</div>
                    <div class="list"><input type="text" th:value="${personal.age}" class="form-control"></div>
                    <div class="list1">英文名</div>
                    <div class="list"><input type="text" th:value="${personal.Ename}" class="form-control"></div>
                    <div class="list1">实习开始日期</div>
                    <div class="list"><input type="text" th:value="${personal.PracBeginDate}" class="form-control">
                    </div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">最高学历</div>
                    <div class="list"><input type="text" th:value="${personal.HighLevelTitle}" class="form-control">
                    </div>
                    <div class="list1">公司名称</div>
                    <div class="list"><input type="text" th:value="${personal.compName}" class="form-control"></div>
                    <div class="list1">实习期</div>
                    <div class="list"><input type="text" th:value="${personal.PracTerm}" class="form-control"></div>
                    <div class="list1">最高学位</div>
                    <div class="list"><input type="text" th:value="${personal.HighDegreeTitle}" class="form-control">
                    </div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">部门名称</div>
                    <div class="list"><input type="text" th:value="${personal.depName}" class="form-control"></div>
                    <div class="list1">实习结束日期</div>
                    <div class="list"><input type="text" th:value="${personal.PracEndDate}" class="form-control"></div>
                    <div class="list1">专业</div>
                    <div class="list"><input type="text" th:value="${personal.Major}" class="form-control"></div>
                    <div class="list1">工作岗位</div>
                    <div class="list"><input type="text" th:value="${personal.JobName}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">试用开始日期</div>
                    <div class="list"><input type="text" th:value="${personal.ProbBeginDate}" class="form-control">
                    </div>
                    <div class="list1">最高职称</div>
                    <div class="list"><input type="text" th:value="${personal.HighTitle}" class="form-control"></div>
                    <div class="list1">行政上级</div>
                    <div class="list"><input type="text" th:value="${personal.ReportToName}" class="form-control"></div>
                    <div class="list1">试用期</div>
                    <div class="list"><input type="text" th:value="${personal.ProbTerm}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">政治面貌</div>
                    <div class="list"><input type="text" th:value="${personal.PartyTitle}" class="form-control"></div>
                    <div class="list1">员工状态</div>
                    <div class="list"><input type="text" th:value="${personal.empStatusTitle}" class="form-control">
                    </div>
                    <div class="list1">在岗状态</div>
                    <div class="list"><input type="text" th:value="${personal.JobStatusTitle}" class="form-control">
                    </div>
                    <div class="list1">试用结束日期</div>
                    <div class="list"><input type="text" th:value="${personal.ProbEndDate}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">加入党派时间</div>
                    <div class="list"><input type="text" th:value="${personal.partydate}" class="form-control"></div>
                    <div class="list1">员工类型</div>
                    <div class="list"><input type="text" th:value="${personal.EmpTypeTitle}" class="form-control"></div>
                    <div class="list1">性别</div>
                    <div class="list"><input type="text" th:value="${personal.GenderTitle}" class="form-control"></div>
                    <div class="list1">籍贯</div>
                    <div class="list"><input type="text" th:value="${personal.Resident}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">出生地</div>
                    <div class="list"><input type="text" th:value="${personal.BirthPlace}" class="form-control"></div>
                    <div class="list1">员工级别</div>
                    <div class="list"><input type="text" th:value="${personal.EmpGradeTitle}" class="form-control">
                    </div>
                    <div class="list1">名族</div>
                    <div class="list"><input type="text" th:value="${personal.NationTitle}" class="form-control"></div>
                    <div class="list1">户口所在地</div>
                    <div class="list"><input type="text" th:value="${personal.ResidentAddress}" class="form-control">
                    </div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">公司邮箱</div>
                    <div class="list"><input type="text" th:value="${personal.EMail}" class="form-control"></div>
                    <div class="list1">工作城市</div>
                    <div class="list"><input type="text" th:value="${personal.WorkCityTitle}" class="form-control">
                    </div>
                    <div class="list1">合同开始日期</div>
                    <div class="list"><input type="text" th:value="${personal.ConBeginDate}" class="form-control"></div>
                    <div class="list1">婚姻状况</div>
                    <div class="list"><input type="text" th:value="${personal.MarriageTitle}" class="form-control">
                    </div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">公司分机</div>
                    <div class="list"><input type="text" th:value="${personal.officePhone}" class="form-control"></div>
                    <div class="list1">司龄调整</div>
                    <div class="list"><input type="text" th:value="${personal.CyearAdjust}" class="form-control"></div>
                    <div class="list1">合同期</div>
                    <div class="list"><input type="text" th:value="${personal.ConTerm}" class="form-control"></div>
                    <div class="list1">健康状况</div>
                    <div class="list"><input type="text" th:value="${personal.HealthTitle}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">QQ</div>
                    <div class="list"><input type="text" th:value="${personal.QQ}" class="form-control"></div>
                    <div class="list1">司龄</div>
                    <div class="list"><input type="text" th:value="${personal.Cyear}" class="form-control"></div>
                    <div class="list1">合同结束日期</div>
                    <div class="list"><input type="text" th:value="${personal.ConEndDate}" class="form-control"></div>
                    <div class="list1">家庭住址</div>
                    <div class="list"><input type="text" th:value="${personal.Address}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">微信</div>
                    <div class="list"><input type="text" th:value="${personal.Wechart}" class="form-control"></div>
                    <div class="list1">工龄</div>
                    <div class="list"><input type="text" th:value="${personal.workyears}" class="form-control"></div>
                    <div class="list1">合同编号</div>
                    <div class="list"><input type="text" th:value="${personal.ConNo}" class="form-control"></div>
                    <div class="list1">血型</div>
                    <div class="list"><input type="text" th:value="${personal.BloodType}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">职能上级</div>
                    <div class="list"><input type="text" th:value="${personal.WFReportToName}" class="form-control">
                    </div>
                    <div class="list1">工龄调整</div>
                    <div class="list"><input type="text" th:value="${personal.WyearAdjust}" class="form-control"></div>
                    <div class="list1">合同类型</div>
                    <div class="list"><input type="text" th:value="${personal.ConTypeTitle}" class="form-control"></div>
                    <div class="list1">手机号码</div>
                    <div class="list"><input type="text" th:value="${personal.Mobile}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">联系电话</div>
                    <div class="list"><input type="text" th:value="${personal.Tel}" class="form-control"></div>
                    <div class="list1">国籍</div>
                    <div class="list"><input type="text" th:value="${personal.CountryTitle}" class="form-control"></div>
                    <div class="list1">合同签约单位</div>
                    <div class="list"><input type="text" th:value="${personal.ContractTitle}" class="form-control">
                    </div>
                    <div class="list1">证件类型</div>
                    <div class="list"><input type="text" th:value="${personal.CertTypeTitle}" class="form-control">
                    </div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list1">邮编</div>
                    <div class="list"><input type="text" th:value="${personal.Postcode}" class="form-control"></div>
                    <div class="list1">从岗日期</div>
                    <div class="list"><input type="text" th:value="${personal.JobBeginDate}" class="form-control"></div>
                    <div class="list1">岗龄</div>
                    <div class="list"><input type="text" th:value="${personal.Jyear}" class="form-control"></div>
                    <div class="list1">合同次数</div>
                    <div class="list"><input type="text" th:value="${personal.conCount}" class="form-control"></div>
                </div>
                <div style="display: flex;margin-top: 10px">
                    <div class="list2">证件编号</div>
                    <div class="list2" style="padding-left: 33px; width: 19%"><input type="text"
                                                                                     th:value="${personal.CertNo}"
                                                                                     class="form-control"></div>
                </div>

            </div>


            <!--教育信息-->
            <div class="tab-pane" id="education_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="education-table"></table>
                    </div>
                </div>
            </div>

            <!--工作经历-->
            <div class="tab-pane" id="working_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="work-table"></table>
                    </div>
                </div>
            </div>

            <!--职称/资格证书-->
            <div class="tab-pane" id="title_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="title-table"></table>
                    </div>
                </div>
            </div>
            <!--培训经历-->
            <div class="tab-pane" id="training_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="training-table"></table>
                    </div>
                </div>
            </div>
            <!--项目经历-->
            <div class="tab-pane" id="project_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="project-table"></table>
                    </div>
                </div>
            </div>

            <!--惩奖经历-->
            <div class="tab-pane" id="hortation_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="hortation-table"></table>
                    </div>
                </div>
            </div>

            <!--家庭背景-->
            <div class="tab-pane" id="family_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="family-table"></table>
                    </div>
                </div>
            </div>

            <!--紧急联系人-->
            <div class="tab-pane" id="emergency_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="emergency-table"></table>
                    </div>
                </div>
            </div>

            <!--语言能力-->
            <div class="tab-pane" id="language_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="language-table"></table>
                    </div>
                </div>
            </div>

            <!--证件管理-->
            <div class="tab-pane" id="certificate_information">
                <div class="row">
                    <div class="col-sm-12 select-table table-striped">
                        <table id="certificate-table"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>

<script th:inline="javascript">

    var prefix = ctx + "empInfo/backGroundInfo";


    var eid;
    $(function () {
        eid = [[${eid}]];
        education();
        work();
        title();
        training();
        project();
        hortation();
        family();
        emergency();
        language();
        certificate();
    });

    //教育信息
    function education() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var BeginDate = {field: 'BeginDate', title: '开始时间'};
        var EndDate = {field: 'EndDate', title: '结束时间'};
        var SchoolName = {field: 'SchoolName', title: '学校名称'};
        var GradTypeTitle = {field: 'GradTypeTitle', title: '毕业类型'};
        var StudyTypeTitle = {field: 'StudyTypeTitle', title: '学习形式'};
        var EduTypeTitle = {field: 'EduTypeTitle', title: '学历类型'};
        var DegreeTypeTitle = {field: 'DegreeTypeTitle', title: '学位类型'};
        var DegreeName = {field: 'DegreeName', title: '学位名称'};
        var Major = {field: 'Major', title: '专业'};
        var EduNo = {field: 'EduNo', title: '学历证书编号'};
        var EduNoDate = {field: 'EduNoDate', title: '学历获得时间'};
        var DegreeNo = {field: 'DegreeNo', title: '学位证书编号'};
        var DegreeNoDate = {field: 'DegreeNoDate', title: '学位获得时间'};
        var SchoolPlace = {field: 'SchoolPlace', title: '学校地址'};
        var Reference = {field: 'Reference', title: '证明人'};
        var Tel = {field: 'Tel', title: '联系方式'};
        var isout = {
            title: "海外教育?",
            formatter: function (value, row, index) {
                if (row.isout == false) {
                    return '否'
                } else if (row.isout == true) {
                    return '是'
                }
            }
        };
        columns.push(id, BeginDate, EndDate, SchoolName, GradTypeTitle, StudyTypeTitle, EduTypeTitle, DegreeTypeTitle);
        columns.push(DegreeName, Major, EduNo, EduNoDate, DegreeNo, DegreeNoDate, SchoolPlace, Reference, Tel, isout);

        var options = {
            id: "education-table",
            url: prefix + "/getEducationList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "教育经历",
            columns: columns
        };
        $.table.init(options);
    }

    //工作经历
    function work() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var BeginDate = {field: 'BeginDate', title: '开始时间'};
        var EndDate = {field: 'EndDate', title: '结束时间'};
        var Company = {field: 'Company', title: '工作单位'};
        var Job = {field: 'Job', title: '担任职务'};
        var WorkPlace = {field: 'WorkPlace', title: '工作地点'};
        var Reference = {field: 'Reference', title: '证明人'};
        var Tel = {field: 'Tel', title: '联系方式'};
        var isout = {
            title: '是否海外工作',
            formatter: function (value, row, index) {
                if (row.isout == false) {
                    return '否'
                } else if (row.isout == true) {
                    return '是'
                }
            }
        };
        columns.push(id, BeginDate, EndDate, Company, Job, WorkPlace, Reference, Tel, isout);
        var options = {
            id: "work-table",
            url: prefix + "/getWorkList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "工作经历",
            columns: columns
        };
        $.table.init(options);
    }

    //职称/资格证书
    function title() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var Title = {field: 'Title', title: '职称名'};
        var TitletypeTitle = {field: 'TitletypeTitle', title: '职称类型'};
        var TitleGradeTitle = {field: 'TitleGradeTitle', title: '职称级别'};
        var Describe = {field: 'Describe', title: '职称描述'};
        var EffectDate = {field: 'EffectDate', title: '获得日期'};
        var CertNo = {field: 'CertNo', title: '证书编号'};

        columns.push(id, Title, TitletypeTitle, TitleGradeTitle, Describe, EffectDate, CertNo);
        var options = {
            id: "title-table",
            url: prefix + "/getTitleList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "职称/资格证书",
            columns: columns
        };
        $.table.init(options);
    }

    //培训经历
    function training() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var IsJoin = {
            title: '入职前后',
            formatter: function (value, row, index) {
                if (row.IsJoin == 0) {
                    return '前'
                } else if (row.IsJoin == 1) {
                    return '后'
                }
            }
        };
        var TraintypeTitle = {field: 'TraintypeTitle', title: '培训类型'};
        var TrainKindTitle = {field: 'TrainKindTitle', title: '培训形式'};
        var content = {field: 'content', title: '培训主题'};
        var Course = {field: 'Course', title: '培训课程'};
        var BeginDate = {field: 'BeginDate', title: '开始时间'};
        var EndDate = {field: 'EndDate', title: '结束时间'};
        var Vendor = {field: 'Vendor', title: '举办机构'};
        var place = {field: 'place', title: '培训地点'};
        var Hours = {field: 'Hours', title: '学时'};
        var Certificate = {field: 'Certificate', title: '证件名'};
        var CertificateNo = {field: 'CertificateNo', title: '证件编号'};
        var AgreementNo = {field: 'AgreementNo', title: '协议编号'};
        var Abegindate = {field: 'Abegindate', title: '协议开始日期'};
        var Aterm = {field: 'Aterm', title: '协议期'};
        var Aenddate = {field: 'Aenddate', title: '协议结束日期'};
        var Expenses = {field: 'Expenses', title: '培训费用'};
        var teacher = {field: 'teacher', title: '讲师姓名'};
        var success = {field: 'success', title: '分数'};

        columns.push(id, IsJoin, TraintypeTitle, TrainKindTitle, content, Course, BeginDate, EndDate, Vendor, place);
        columns.push(Hours, Certificate, CertificateNo, AgreementNo, Abegindate, Aterm, Aenddate, Expenses, teacher, success);

        var options = {
            id: "training-table",
            url: prefix + "/getTrainingList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "培训经历",
            columns: columns
        };
        $.table.init(options);
    }

    //项目经历
    function project() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var BeginDate = {field: 'BeginDate', title: '开始时间'};
        var EndDate = {field: 'EndDate', title: '结束时间'};
        var ProjName = {field: 'ProjName', title: '项目名称'};
        var Description = {field: 'Description', title: '项目描述'};
        var Job = {field: 'Job', title: '担任职务'};
        var ProjAddress = {field: 'ProjAddress', title: '项目地址'};
        var Principal = {field: 'Principal', title: '项目负责人'};

        columns.push(id, BeginDate, EndDate, ProjName, Description, Job, ProjAddress, Principal);

        var options = {
            id: "project-table",
            url: prefix + "/getProjectList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "项目经历",
            columns: columns
        };
        $.table.init(options);
    }

    //惩奖经历
    function hortation() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var InOut = {
            title: '公司内外',
            formatter: function (value, row, index) {
                if (row.InOut == 1) {
                    return '内'
                } else if (row.InOut == 2) {
                    return '外'
                }
            }
        };
        var HortationTypeTitle = {field: 'HortationTypeTitle', title: '奖惩类型'};
        var HortationKindTitle = {field: 'HortationKindTitle', title: '奖惩种类'};
        var HappenDate = {field: 'HappenDate', title: '发生日期'};
        var Reason = {field: 'Reason', title: '原因'};
        var Description = {field: 'Description', title: '描述'};

        columns.push(id, InOut, HortationTypeTitle, HortationKindTitle, HappenDate, Reason, Description);
        var options = {
            id: "hortation-table",
            url: prefix + "/getHortationList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "惩奖经历",
            columns: columns
        };
        $.table.init(options);
    }

    //家庭背景
    function family() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var fname = {field: 'fname', title: '亲属姓名'};
        var relationTitle = {field: 'relationTitle', title: '家属关系'};
        var GenderTitle = {field: 'GenderTitle', title: '性别'};
        var BirthDay = {field: 'BirthDay', title: '出生日期'};
        var Company = {field: 'Company', title: '工作单位'};
        var job = {field: 'job', title: '担任职务'};
        var StatusTitle = {field: 'StatusTitle', title: '员工状态'};
        var Remark = {field: 'Remark', title: '备注'};
        columns.push(id, fname, relationTitle, GenderTitle, BirthDay, Company, job, StatusTitle, Remark);
        var options = {
            id: "family-table",
            url: prefix + "/getFamilyList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "家庭背景",
            columns: columns
        };
        $.table.init(options);
    }

    //紧急联系人
    function emergency() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var EmergencyName = {field: 'EmergencyName', title: '联系人姓名'};
        var RelationTitle = {field: 'RelationTitle', title: '关系'};
        var Telephone = {field: 'Telephone', title: '联系电话'};
        var Address = {field: 'Address', title: '联系地址'};
        var EMail = {field: 'EMail', title: '电子邮件'};
        var PostCode = {field: 'PostCode', title: '邮编'};
        var Remark = {field: 'Remark', title: '备注'};

        columns.push(id, EmergencyName, RelationTitle, Telephone, Address, EMail, PostCode, Remark);
        var options = {
            id: "emergency-table",
            url: prefix + "/getEmergencyList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "紧急联系人",
            columns: columns
        };
        $.table.init(options);
    }

    //语言能力
    function language() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var LanguageTypeTitle = {field: 'LanguageTypeTitle', title: '语言类型'};
        var LanguageGradeTitle = {field: 'LanguageGradeTitle', title: '熟练程度'};
        var Certificate = {field: 'Certificate', title: '获得证书'};
        var EffectDate = {field: 'EffectDate', title: '证书获得日期'};
        var remark = {field: 'remark', title: '备注'};
        columns.push(id, LanguageTypeTitle, LanguageGradeTitle, Certificate, EffectDate, remark);
        var options = {
            id: "language-table",
            url: prefix + "/getLanguageList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "语言能力",
            columns: columns
        };
        $.table.init(options);
    }

    //证件管理
    function certificate() {
        var columns = [];
        var id = {field: 'id', title: '序号'};
        var CertTypeTitle = {field: 'CertTypeTitle', title: '证件类型'};
        var CertNo = {field: 'CertNo', title: '证件编号'};
        var payOrg = {field: 'payOrg', title: '颁发机构'};
        var BeginDate = {field: 'BeginDate', title: '颁发日期'};
        var Term = {field: 'Term', title: '有效期'};
        var EndDate = {field: 'EndDate', title: '有效截止日期'};
        var isDisable = {
            title: '是否失效',
            formatter: function (value, row, index) {
                if (row.isDisable == 0) {
                    return '否'
                } else if (row.isDisable == 1) {
                    return '是'
                }
            }
        };
        var remark = {field: 'remark', title: '备注'};
        columns.push(id, CertTypeTitle, CertNo, payOrg, BeginDate, Term, EndDate, isDisable, remark);
        var options = {
            id: "certificate-table",
            url: prefix + "/getCertificateList?eid=" + eid,
            escape: true,
            showPageGo: true,
            rememberSelected: true,
            height: $(window).height() - 120,
            modalName: "证件管理",
            columns: columns
        };
        $.table.init(options);
    }

</script>
</body>
</html>